﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsItem>
#include <QTime>
#include <QRandomGenerator>
#include <QMessageBox>
#include <QInputDialog>
#include <QColorDialog>
#include <QFileDialog>
#include <QTextStream>
#include <QDebug>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QList<QPointF> m_points;

private slots:


    void on_actLine_triggered(bool checked);

    void onMouseClicked(QPointF);

    void on_actLines_triggered(bool checked);

    void on_actEllipse_triggered();

    void on_actPolyline_triggered(bool checked);

    void on_actMove_triggered();

    void on_actColor_triggered();

    void on_actProperty_triggered();

    void on_actNew_triggered();

    void on_actSave_triggered();

    void on_actOpen_triggered();







private:
    Ui::MainWindow *ui;

    void init();


    QGraphicsScene* m_scene;



};
#endif // MAINWINDOW_H
